Added 'symbol' option to an1 format
authorparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 15 Oct 2005 21:25:03 +0000 (21:25 +0000)
committerparkrrrr <parkrrrr@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sat, 15 Oct 2005 21:25:03 +0000 (21:25 +0000)
gpsbabel/README
gpsbabel/an1.c

index 2c6552e99175bb1e8f2fa6acef760c5bc9baf561..33da38c85c771e513365c6fdb5bb191e88d4f901 100644 (file)
@@ -949,6 +949,12 @@ THE FORMATS
   
         gpsbabel -i gpx -f 12345.gpx -o an1,nogc -F 12345.an1
 
+        The "symbol" option allows you to specify which symbol to use for
+        points that don't have a symbol already.  It defaults to "Red Flag" 
+        but it accepts any symbol name you can put in a DeLorme export file.
+        To find the name of a specific symbol in Street Atlas, let the mouse
+        pointer hover over it for a few seconds and the name will be displayed.
+
         GPSBabel has limited experimental support for other types of layers
         besides the default "drawing" layer with the use of two options:
 
index 2de011aa0afa6d3fc841a947df28a2a35fdb7f06..9139ebf145324f460154205279f87ac548272a49 100644 (file)
@@ -32,6 +32,7 @@ static FILE *outfile;
 static char *output_type = NULL;
 static char *road_changes = NULL;
 static char *nogc = NULL;
+static char *opt_symbol = NULL;
 static short output_type_num = 0;
 
 static short last_read_type = 0;
@@ -54,6 +55,8 @@ arglist_t an1_args[] = {
                "", ARGTYPE_HIDDEN | ARGTYPE_STRING },
        {"nogc", &nogc, "Do not add geocache data to description",
                NULL, ARGTYPE_BOOL },
+       {"symbol", &opt_symbol, "Symbol to use for point data",
+               "Red Flag", ARGTYPE_STRING },
        {0, 0, 0, 0 }
 };
 
@@ -621,7 +624,7 @@ Write_One_AN1_Waypoint( const waypoint *wpt )
                rec->unk2 = 3;
                rec->unk3 = 18561;
                rec->fontname = xstrdup( "Arial" );
-               FindIconByName( "Red Flag", &rec->guid );
+               FindIconByName( opt_symbol, &rec->guid );
                rec->fontsize = 10;
        }
        rec->name = xstrdup( wpt->description );